package com.zjdiepu.www.biz.system;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zjdiepu.www.base.core.BaseService;
import com.zjdiepu.www.dao.system.DpBaseCarNumberSelectorMapper;
import com.zjdiepu.www.ibiz.system.IDpCarNumberSelectorService;
import com.zjdiepu.www.model.third.dto.JuheCar;
import com.zjdiepu.www.model.third.dto.JuheSeries;
import com.zjdiepu.www.model.third.ext.JuheSeriesExt;

@Service
public class DpCarNumberSelectorServiceImpl extends BaseService implements IDpCarNumberSelectorService{
	@Autowired
	private DpBaseCarNumberSelectorMapper dpBaseCarNumberSelectorMapper;
	@Override
	public PageInfo<JuheCar> queryCarTypeInfo(Integer pageNo, Integer pageSize, Map<String, Object> aWhere) {
		pageNo = pageNo == null?1:pageNo;
		pageSize = pageSize == null?10:pageSize;
		PageHelper.startPage(pageNo, pageSize);
		List<JuheCar> jhProvinceList=dpBaseCarNumberSelectorMapper.queryCarTypeInfo(aWhere);
		PageInfo<JuheCar> page = new PageInfo<JuheCar>(jhProvinceList);
		return page;
	}
	@Override
	public int countCarInfosByExt(JuheSeriesExt juheSeriesExt) {
		
		return dpBaseCarNumberSelectorMapper.countCarInfosByExt(juheSeriesExt);
	}
	@Override
	public List<JuheSeries> queryCarInfosByExt(JuheSeriesExt juheSeriesExt) {
		
		return dpBaseCarNumberSelectorMapper.queryCarInfosByExt(juheSeriesExt);
	}

}
